package com.alibaba.Text.p1.Shape;

/**
 * 矩形
 */
public class Rectange  extends Shape {

    private int width;

    private int length;

    public Rectange(int width, int length) {
        this.width = width;
        this.length = length;
    }

    @Override
    public Integer calculatePerimeter(){
        return (width + length) * 2;
    }

    @Override
    public Integer calculateAera() {
        return width * length;
    }
}
